/*
* $Id: EvacuationTable.h 2 2009-12-23 13:58:02Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _EVACUATION_TABLE_H_
#define _EVACUATION_TABLE_H_

#include "../Table.h"
#include "../Operation.h"

class CEvacuationTable : public CTable, public CFillContent
{
public:
	CEvacuationTable();
	virtual ~CEvacuationTable();
public:
	struct content : public CTable::content{
		content();
		time_t s_date;
		int s_nIdFamily;
		int s_nHoney;
		std::tstring s_strPlant;
		virtual void Clear();
		virtual void Set(const std::vector<CTableItem>& aContent);
		virtual void Free();
	}m_content;
public:
	virtual void CreateTable(IDatabase* pDatabase);
	virtual void UpdateValue(IDatabase* pDatabase);
	virtual IResult* GetValue(IDatabase* pDatabase);
	virtual void SetValue(IDatabase* pDatabase);
	virtual void DeleteValue(IDatabase* pDatabase);
	virtual IOperation::i_content* CreateContent();
};

#endif/*_EVACUATION_TABLE_H_*/